package cn.edu.zafu.bigdata.cccnnn.workone;

interface Movable {
     void move();
     void stop();
}


interface Resizable{
    void resize(double factor);
}

class Car implements Movable{
    public void move(){
        System.out.println("The car is moving.");
    }
    public void stop(){
        System.out.println("The car has stopped.");
    }
}

class ResizableCircle implements Movable,Resizable{
    public double radius;

    public ResizableCircle(double radius) {
        this.radius = radius;
    }

    public void move(){
        System.out.println("The circle is moving.");
    }
    public void stop(){
        System.out.println("The circle has stopped.");
    }
    public void resize(double factor){
        this.radius *= factor;
        System.out.println("The radius is "+this.radius);

    }

}




